<h1><?=$this->translate->_('header_mod_smilies')?></h1>

<p><a href="<?=$this->url(array('module' => 'backend', 'controller' => 'smilies', 'action' => 'add'), 'smiley_add', true)?>"><?=$this->translate->_('smiley_add')?></a></p>

<?if($this->count > 0):?>
	<table summary="ranks" class="table_logs">
	<tr>
		<th width="16px"></th>
		<th class="center"><?=$this->translate->_('smiley_file')?></th>
		<th class="center"><?=$this->translate->_('smiley_wrapper')?></th>
		<th class="center"><?=$this->translate->_('smiley_desc')?></th>
		<th></th>
	</tr>
	<?foreach($this->results AS $content):?>
	<tr>
		<td><img src="<?=$this->baseUrl()?>/static/gfx/smilies/<?=$content['image']?>" alt="<?=$content['desc']?>" title="<?=$content['desc']?>" /></td>
		<td class="center" style="font-size:0.8em;"><?=$content['image']?></td>
		<td class="center" style="font-size:0.8em;"><?=$content['wrapper']?></td>
		<td class="center" style="font-size:0.8em;"><?=$content['desc']?></td>
		<td class="right"><a href="<?=$this->url(array('controller' => 'moderation', 'action' => 'delsmiley', 'uid' => $content['uid']), 'smiley_delete', true)?>"><img alt="Delete" title="Delete" src="<?=$this->baseUrl()?>/static/gfx/icons/bin.png" /></a></td>
	</tr>
	<?endforeach;?>
	</table>
<?else:?>
	<p class="notice_bad"><?=$this->translate->_('smiley_error')?></p>
<?endif;?>

<p><a href="<?=$this->url(array('module' => 'backend', 'controller' => 'smilies', 'action' => 'add'), 'smiley_add', true)?>"><?=$this->translate->_('smiley_add')?></a></p>